<extend name="Index/index" />

<block name="Main content">


<div class="container mt30 adminlogin">
    <div class="row">
            
        <div class="col-md-12 col-sm-12 bg-primary">
            <h3 class=" text-center"><b>编 辑 话 题</b></h3>
        </div>

        <form action="<{:U('Topics/save')}>" method="post" enctype="multipart/form-data" class="form-horizontal col-md-4 col-md-offset-4 col-sm-4 col-sm-offset-4 mt50">

            <input type="hidden" name="id" class="form-control" placeholder="请输入话题名" value="<{$data.0.id}>">

            <div class="form-group">
                <label for="name" class="col-md-3 control-label h6">话 题 名:</label>
                <div class="col-md-9">
                    <input type="text" name="name" class="form-control" id="name" placeholder="请输入话题名" value="<{$data.0.name}>">
                </div>
            </div>


            <div class="form-group">
                <label for="pid" class="col-md-3 control-label h6">PID:</label>
                <div class="col-md-9">
                    <input type="text" name="pid" class="form-control" id="pid" value="<{$data.0.pid}>" readonly>
                </div>
            </div>


            <div class="form-group">
                <label for="path" class="col-md-3 control-label h6">PATH:</label>
                <div class="col-md-9">
                    <input type="text" name="path" class="form-control" id="path" value="<{$data.0.path}>" readonly>
                </div>
            </div>

            <div class="form-group">
                <label for="detail" class="col-md-3 control-label h6">简介:</label>
                <div class="col-md-9">
                    <textarea name="detail" class="form-control" id="detail" placeholder="请输入百字以内简介"><{$data.0.detail}></textarea>
                </div>
            </div>


            <div class="form-group">
                <label for="image" class="col-md-3 control-label h6">原图片:</label>
                <div class="col-md-9">
                    <img src="__PUBLIC__/imgs/<{$data.0.image}>">
                </div>
            </div>

            <div class="form-group">
                <label for="image" class="col-md-3 control-label h6">图片:</label>
                <div class="col-md-9">
                    <input type="file" name="imgFile" class="form-control" id="image">
                </div>
            </div>


            <div class="form-group">
                <div class="col-md-6">
                    <button type="reset" class="btn btn-primary btn-block">重 置</button>
                </div>
                <div class="col-md-6">
                    <button type="submit" class="btn btn-primary btn-block">提 交</button>
                </div>
            </div>



        </form>
    </div><!-- end row-->
</div><!--end container-->



</block>

<block name="myjs">

</block>